package PTA.javabianchengjichu2;

import java.util.Scanner;

public class ex14 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int count1=0;
        int count2=0;
        for(int i=1;i<=a;i++){
            if(i%2==0&&i%3==0){
                count1++;
            }else if(i%2!=0&&i%3==0){
                count2++;
            }
        }
        System.out.println(count2+","+count1);



    }
}
